package com.ship.mapper;

import com.ship.dto.DeptDto;
import com.ship.dto.DeptSearchDto;
import com.ship.model.Dept;
import com.ship.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author Lucky Boy
* @description 针对表【dept】的数据库操作Mapper
* @createDate 2024-07-01 15:56:25
* @Entity com.ship.model.Dept
*/
@Mapper
public interface DeptMapper {


    List<Dept> selectAll();

    int selectDeptExists(Long deptId);

    int insertDepts(DeptDto deptDto);

    int deleteOne(Long deptId);

    int deleteMany(String deptIds);

    List<Dept> selectDeptsBySearch(DeptSearchDto deptSearchDto);

    int updateDept(DeptDto deptDto);

   String getShipNameById(Long deptId);
}
